package com.mapper;

import com.entity.Student;


import java.util.List;

public interface StudentMapper {

    //查询全部学生信息
    public List<Student> findStudentAll();

    //按照姓名查询
    public  List<Student> findStudentName(String stuname);

    //按照编号查询
    Student  findStudentById(int id);

    //添加
    public  void saveStudent(Student student);

    /*
    一对一的查询
     */
    public List<Student> findAllWithGrade();
}
